<link rel="stylesheet" href="../scripts/uniform/css/uniform.default.css" media="screen" />
<script src="../scripts/uniform/jquery.uniform.js"></script>
<script type="text/javascript">
    $(document).ready(function()
    {
        $("select").uniform();
    });
</script>
<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPham = 0;
    
    if(isset($_POST['MaLoaiSanPham']))
        $MaLoaiSanPham = $_POST['MaLoaiSanPham'];
    
    $loaisanphamc1 = new loaisanphamc1bs();
    $loaisanphamc1->MaLoaiSanPham = $MaLoaiSanPham;
    $ret_loaisanphamc1 = $loaisanphamc1->getList();
    if($ret_loaisanphamc1 != null)
    {
        echo '<label>Chọn loại sản phẩm cấp 1 <span class="require">*</span></label>
            <select name="MaLoaiSanPhamCap1" id="MaLoaiSanPhamCap1" onchange="getStyleProductSec();">';
            echo "<option value='0'>---- Chọn ----</option>";
    			for($i = 0; $i < ($ret_loaisanphamc1 != false ? count($ret_loaisanphamc1) : 0); $i++)
    			{
    				echo "<option value=\"{$ret_loaisanphamc1[$i]['MaLoaiSanPhamCap1']}\">{$ret_loaisanphamc1[$i]['TenLoaiSanPhamCap1']}</option>";
    			}
    	echo '</select>';
    }
?>